#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

int main(void) {
    char *path = "/bin/ls";
    char *args[] = {"ls", "/home/ubuntu", NULL};
    char *envp[] = {NULL};
    if (execve(path, args, envp) == -1) {
        perror("execve faild");
        exit(EXIT_FAILURE);
    }
    return 0;
}